package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.HousingConInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/key/HousingConInfoController")
public class HousingConInfoController {

    @Autowired
    HousingConInfoService housingConInfoService;

    @ResponseBody
    @RequestMapping("getConInfo")
    public JsonResult getConInfo(@RequestParam Map<String,Object> params){
        return  housingConInfoService.getConInfo(params);
    }

    /**
     * 根据房源id 查询房源
     * @param params
     * @return
     */
    @ResponseBody
    @PostMapping("gettcmktHousing")
    public JsonResult gettcmktHousing(@RequestBody List<Map<String,Object>> params){

        return housingConInfoService.gettcmktHousing(params);
    }
}
